﻿<Window x:Class="WpfWordsLearner.Views.DecompressAndMergeWind"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
        xmlns:local="clr-namespace:WpfWordsLearner"
        Title="Merge dictionaries"
        Width="320"
        Height="160">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition />
			<RowDefinition />
		</Grid.RowDefinitions>
		<StackPanel VerticalAlignment="Center" Orientation="Horizontal">
			<TextBlock Text="File:" />
			<TextBox Width="210"
			         Margin="3,0,0,0"
			         HorizontalAlignment="Center"
			         Text="{Binding Path=FileToDecompress,
			                        Mode=TwoWay,
			                        UpdateSourceTrigger=PropertyChanged}">
				<i:Interaction.Behaviors>
					<local:WatermarkTextBoxBehavior Watermark="Enter or choose path to file..." />
				</i:Interaction.Behaviors>
			</TextBox>
			<Button Margin="2,0,0,0"
			        Command="{Binding ChooseCommand}"
			        Content="Choose" />
		</StackPanel>
		<Button Grid.Row="1"
		        Command="{Binding DecompressCommand}"
		        Content="Merge" />
	</Grid>
</Window>
